#pragma once

#include <string.h>
#include "MyNetworkObject.h"
#include <iostream>
#include <string>
#include <boost\shared_ptr.hpp>

typedef boost::shared_ptr<char> MyCharPtr;

class MyString
{
public:
	int size;
	MyCharPtr data;
	MyString();
	~MyString();
	MyString(const char*);
	MyString(std::string s);
	MyString(const MyString&);
	MyString& operator = (const MyString&);
	MyString& ConvertFromString(const std::string s);
	operator MyCharPtr () const;
	friend std::istream& operator >> (std::istream& in,MyString& _string);
	friend std::ostream& operator << (std::ostream& os,MyString& _string);
};
